package health.lm.com.mine.present;


import health.lm.com.component_base.base.mvp.contract.XPresent;
import health.lm.com.mine.activity.AllianceBusinessActivity;
import health.lm.com.mine.entity.AllianceBusinessBean;
import health.lm.com.mine.model.MineModel;
import health.lm.com.network.callback.SimpleCallBack;

/**
 * 联盟商管理后台
 */

public class AllianceBusinessPresenter extends XPresent<AllianceBusinessActivity> {

    public void getData() {
        MineModel.getInstance().allianceBusiness(new SimpleCallBack<AllianceBusinessBean>() {
            @Override
            public void onSuccess(AllianceBusinessBean bean) {
                if (hasV()){
                    getV().setData(bean);
                }
            }
        });
    }
}
